<script>
/*
 * @Author: wzh 
 * @Date: 2020-12-18 01:23:31 
 * @Last Modified by: 1521620993@qq.com
 * @Last Modified time: 2020-12-18 01:31:17
 */
</script>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>06-空白处理</title>
</head>
<body>
  <style>
    /* div{
      width: 300px;
      border: 1px solid blue;
      white-space: nowrap;
    } */
  </style>
  <!-- <div>Lorem ipsum dolor sit amet consectetur adipisicing elit. Ab, ea molestiae voluptate quaerat alias saepe maxime sint soluta commodi, cumque, ipsa deserunt doloremque. Est omnis voluptate eum corporis natus accusantium.</div> -->
  <style>
    ul li{
      list-style: none;
      width: 360px;
      border-bottom: 1px dashed blue;
      white-space: nowrap;
      border-right: 1px dashed red;
      overflow: hidden;
      text-overflow: ellipsis;
    }
  </style>
  <ul>
    <li>Lorem ipsum dolor sit amet consectetur.</li>
    <li>Et praesentium obcaecati inventore molestias magni?</li>
    <li>Fugit maiores minima impedit molestias dicta.</li>
    <li>Recusandae molestias magni laudantium temporibus ducimus.</li>
    <li>Laboriosam a sunt veniam architecto neque!</li>
    <li>Aliquam a esse recusandae molestias tempora?</li>
  </ul>
</body>
</html>